const service = require("../service/aset.article.category.service");
class LabelController {
  async create(ctx, next) {
    const { content } = ctx.request.body;
    const result = await service.create(content);
    ctx.body = result;
  }

  async update(ctx, next) {
    const { content, id } = ctx.request.body;
    const result = await service.update(content, id);
    ctx.body = result;
  }
  async list(ctx, next) {
    const result = await service.list();
    ctx.body = result;
  }
  
  async remove(ctx,next){
    const {  id } = ctx.request.body;
    const result = await service.remove(id);
    ctx.body = result;
  }
}

module.exports = new LabelController();
